home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / PROGRAMM / ASSEMBLE / H145.ZIP / ASXXXX_3.ZIP / I8085.H < prev    next >
C/C++ Source or Header  |  1990-07-18  |  1KB  |  80 lines

  1. /* i8085.h */
  2.  
  3. /*
  4.  * (C) Copyright 1989,1990
  5.  * All Rights Reserved
  6.  *
  7.  * Alan R. Baldwin
  8.  * 721 Berkeley St.
  9.  * Kent, Ohio  44240
  10.  */
  11.  
  12. /*)BUILD
  13.     $(PROGRAM) =    AS8085
  14.     $(INCLUDE) = {
  15.         ASM.H
  16.         I8085.H
  17.     }
  18.     $(FILES) = {
  19.         I85EXT.C
  20.         I85MCH.C
  21.         I85PST.C
  22.         ASMAIN.C
  23.         ASLEX.C
  24.         ASSYM.C
  25.         ASSUBR.C
  26.         ASEXPR.C
  27.         ASDATA.C
  28.         ASLIST.C
  29.         ASOUT.C
  30.     }
  31.     $(STACK) = 2000
  32. */
  33.  
  34. /*
  35.  * Symbol types.
  36.  */
  37. #define    S_INH    50        /* One byte */
  38. #define    S_RST    51        /* Restart */
  39. #define    S_ADI    52        /* One byte immediate */
  40. #define    S_ADD    53        /* One reg. */
  41. #define    S_JMP    54        /* Jumps, calls, etc. */
  42. #define    S_INR    55        /* Reg. dest. */
  43. #define    S_LXI    56        /* Word immediate */
  44. #define    S_LDAX    57        /* B or D */
  45. #define    S_INX    58        /* Word reg. dest. */
  46. #define    S_PUSH    59        /* Push, pop */
  47. #define    S_MOV    60        /* Mov */
  48. #define    S_MVI    61        /* Mvi */
  49. #define    S_REG    62        /* Registers */
  50.  
  51. /*
  52.  * Other
  53.  */
  54. #define    S_FLAG    70
  55.  
  56. /*
  57.  * Registers.
  58.  */
  59. #define    B    0
  60. #define    C    1
  61. #define    D    2
  62. #define    E    3
  63. #define    H    4
  64. #define    L    5
  65. #define    M    6
  66. #define    A    7
  67. #define    SP    8
  68. #define    PSW    9
  69.  
  70.     /* machine dependent functions */
  71.  
  72.     /* 85mch.c */
  73. extern    VOID        comma();
  74. extern    VOID        machin();
  75. extern    VOID        minit();
  76. extern    VOID        out3();
  77. extern    int        reg();
  78. extern    int        regpair();
  79.  
  80.